package com.exmple.service.impl;

import com.exmple.dao.IUserDao;
import com.exmple.model.User;
import com.exmple.service.IUserService;
import lombok.Setter;


public class UserServiceImpl1 implements IUserService {
    private IUserDao userDao;
    UserServiceImpl1(IUserDao userDao){
        this.userDao=userDao;
    }
    @Override
    public User getUserById() {
        int id=2;
        User user =userDao.getUserById(id);
        System.out.println("service二次调用");
        System.out.println("id="+user.getId());
        return null;
    }
}
